using System;
using Sinacor.Servico.Bovespa.Cliente.Service.DataContract.Request;
using Sinacor.Servico.Bovespa.Cliente.BusinessEntity;

namespace Sinacor.Servico.Bovespa.Cliente.Service.ServiceImplementation.Translator
{
    public static class TranslateBetweenConsultarEmissorOrdemRequestAndEmissorOrdem
    {
        public static BusinessEntity.EmissorOrdem TranslateConsultarEmissorOrdemRequestToEmissorOrdem(DataContract.Request.ConsultarEmissorOrdemRequest from)
        {
            BusinessEntity.EmissorOrdem to = new BusinessEntity.EmissorOrdem();
            to.CodigoCliente = from.CodigoCliente;
            to.ApelidoCliente = from.Apelido;
            return to;
        }
    }
}

